package com.anjubao.parking.municipal.roadside.controller;

import com.alibaba.fastjson.JSON;
import com.anjubao.parking.municipal.common.dto.ApiResult;
import com.anjubao.parking.municipal.roadside.dto.UserOweFeeDto;
import com.anjubao.parking.municipal.roadside.service.PayRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/payRecord")
public class PayRecordController {
    @Autowired
    private PayRecordService payRecordService;

    @GetMapping("/getUserOweFee")
    public ApiResult<List<UserOweFeeDto>> getUserOweFee(@RequestParam("userCodelist")List<String> userCodeList){
        return ApiResult.success(payRecordService.getUserOweFee(userCodeList));
    }
}
